home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 049a / sx227r1.zip / COMPRESS.BAT < prev    next >
DOS Batch File  |  1990-07-30  |  2KB  |  76 lines

  1. echo off
  2. :
  3. :-----------------------------------------------------------
  4. : COMPRESS batch file - Xpress Packet Compression Process
  5. :   (c) copyright 1988-90 Santronics Software
  6. :-----------------------------------------------------------
  7. :
  8. :  NOTE: Xpress during the COMPRESSION process in the startup
  9. :        directory.
  10. :
  11. :-----------------------------------------------------------
  12. : Input Parameters
  13. :-----------------------------------------------------------
  14. :
  15. :  1 Hotkey from Xpress Archiver Menu
  16. :  2 /M
  17. :  3 full path location and xpress OPX packet name.
  18. :  4 xpress work directory wild card passed by opxpress.
  19. :
  20. :-----------------------------------------------------------
  21. : Modify and Add extra archivers if required.
  22. :
  23. :     1) first add a IF statement with a GOTO
  24. :     2) then add the goto LABEL with the appropiate logic.
  25. :-----------------------------------------------------------
  26. :
  27. IF "%1" == "A" GOTO ARCA
  28. IF "%1" == "X" GOTO PKARC
  29. IF "%1" == "P" GOTO PAK
  30. IF "%1" == "Z" GOTO PKZIP
  31. IF "%1" == "L" GOTO LHARC
  32. GOTO ERROR
  33.  
  34. :------------------------------------ ARCA compression
  35. :ARCA
  36. :
  37.   ARCA %3 %4 /d
  38.   EXIT ERRORLEVEL
  39.   GOTO END
  40.  
  41. :------------------------------------ PK ARC compression, 3.5 or 3.6
  42. :PKARC  - Note PKARC/PKXARC does not return ERROR codes.
  43. :         Xpress will try to see if any !*.* exist to determine
  44. :         if an error occurred.
  45. :
  46.   PKARC %2 %3 %4
  47.   EXIT ERRORLEVEL
  48.   GOTO END
  49.  
  50. :------------------------------------ PAK compression, 1.0
  51. :PAK
  52. :
  53.   PAK M %3 %4
  54.   EXIT ERRORLEVEL
  55.   GOTO END
  56.  
  57. :------------------------------------ PKZIP compression
  58. :PKZIP
  59. :
  60.   PKZIP -MEA4 %3 %4
  61.   EXIT ERRORLEVEL
  62.   GOTO END
  63.  
  64. :------------------------------------ LHARC compression
  65. :LHARC
  66. :
  67.   LHARC m /m %3 %4
  68.   EXIT ERRORLEVEL
  69.   GOTO END
  70.  
  71. :------------------------------------ ERROR PROCESSING
  72. :ERROR
  73. echo Compress Archiver %1 not found!
  74. :END
  75.  
  76.